/*
 * class for templating engines
 */

package item.engine;

import java.io.Serializable;

import item.Item;

public class Engine extends Item implements Serializable {

	private static final long serialVersionUID = 3636249177356286116L;
	
	public int speed; //how fast the engine is

	//creates an Engine object
	
	protected Engine(int cost, int condition, int level, int weight, int speed) {
		super(cost, condition, level, weight);
		this.speed = speed;
		name = "Engine";
	}//end of constructor 
	
	public String toString() {
		return super.toString() + ": " + speed;
	}

}//end of class Engine
